#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,i,j,r;
    cin>>r;
   {for(i=0;i<=j;i++);
    cin>>i>>j;
};
    {for(0;i>>j;i++);
    };
    cout<<i,j;
    return 0;
}
